package com.letoken.platform.repo.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.app.po.AdminFundV2Config;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2024-02-18
 */
public interface AdminFundV2ConfigMapper extends BaseMapper<AdminFundV2Config> {

    @Select("select * from admin_fund_v2_config where id = 1")
    AdminFundV2Config getMinNumber();

    @Select("select * from admin_fund_v2_config order by id desc")
    List<AdminFundV2Config> getFundV2ConfigList();

    @Select("select id,min_number,rate from admin_fund_v2_config order by min_number asc")
    List<AdminFundV2Config> listAsc();
}
